# 使用while循环打印奇数，在一行中打印
print("打印奇数，方案一")
i = 1
while i <= 100:
    print(i, end=", ")
    i += 2
i = 1
print()
print("打印奇数，方案二")
while i <= 100:
    if i % 2 == 1:
        print(i, end=", ")
    i += 1

# 使用while循环打印偶数，在一行中打印
print()
print("打印偶数，方案一")
i = 0
while i <= 100:
    print(i, end=", ")
    i += 2

i = 0

print()
print("打印偶数，方案二")
while i <= 100:
    if i % 2 == 0:
        print(i, end=", ")
    i += 1
